<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/common/taglibs.jspf" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>我的待办</title>
    <meta name="decorator" content="list"/>
</head>
<body>
<div class="main-container" id="main-container">
    <input type="hidden" name="orgId" value="${orgId}">
    <div class="row">
        <div class="col-sm-12">
            <grid:grid id="upcomingList" url="${appPath}/act/deal/ajaxMyUpcomingList" columnKey="taskId" pageId="SYS:upcomingList">
                <grid:column label="taskId"  name="taskId" hidden="true" key="true"/>
                <grid:column label="busId"  name="busId" hidden="true"  />
                <grid:column label="instanceId"  name="instanceId" hidden="true"  />
                <grid:column label="defId"  name="defId" hidden="true"  />
                <grid:column label="nodeType"  name="nodeType" hidden="true"  />
                <grid:column label="actKey"  name="actKey" hidden="true"  />
                <grid:column label="任务名称"  name="taskName" />
                <grid:column label="业务编号"  name="code"  query="true" condition="like" width="100"/>
                <grid:column label="业务名称"  name="busName"  query="true" condition="like" width="100"/>
                <grid:column label="流程发起人"  name="startUserName"   />
                <grid:column label="任务创建时间"  name="createTime"  query="true" queryMode="date" condition="between" dateformat="yyyy-MM-dd" formatter="date"  />
                <grid:column label="等待处理人"  name="dealName" />
                <grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
                <grid:button groupname="opt" id="btnEdit" title="办理" onclick="doTaskTab(row.actKey,row.busId,row.instanceId,row.taskId,row.defId,row.nodeType)" outclass="btn-primary" />
                <grid:toolbar  function="search" />
                <grid:toolbar  function="reset" icon="icon-reload"  />
            </grid:grid>
        </div>
    </div>
</div>

<script>
    /**
     * 任务办理Tab
     */
    function doTaskTab(actKey,busId,instanceId,taskId,defid,nodeType) {
        debugger
        var url="${appPath}/act/deal/flowInfoTab?flag=2&actKey="+actKey+"&busId="+busId+"&instanceId="+instanceId+"&taskId="+taskId+"&defId="+defid+"&nodeType="+nodeType+"&orgId=${orgId}" ;
        //弹框层
        layer.open({
            scrollbar: false,
            type: 2,
            title : ["办理任务" , true],
            area: ['60%', '60%'], //宽高
            content: [url,'yes'],
            shadeClose : false,
        });
    }


</script>

</body>

</html>